package com.plusfoursix.game;

import rokon.Rokon;
import android.app.Activity;
import android.os.Bundle;


public class Game extends Activity {
    /** Called when the activity is first created. */

	Rokon rokon;
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        //	The first thing you need to do before anything, is create 
        //	the engine
        rokon = Rokon.createEngine(this, 320, 480);
        
        //	Removes the title bar
        rokon.setFullscreen();
        
        
        //	Fixes the orientation, if left to be set manually it can 
        //	cause FPS drops.
        rokon.fixPortrait();
        
        //	Creates the Renderer and SurfaceView,
        rokon.init();
        
        //	A separate game thread will keep graphics running smoothly  
        //	while you handle game logic
        Thread gameThread = new Thread(new GameThread(rokon));
        
        gameThread.start();
    }
    
  

}